;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <myemail@nowhere.com>
;
; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#NoTrayIcon
#SingleInstance Force

SetTitleMatchMode, 2
GroupAdd,ReaperGroup,REAPER,,,C:\

#IfWinActive,ahk_group ReaperGroup
{	
	^+!r::
	IfWinExist,ahk_group ReaperGroup
	{   
		If FileExist("Autorender.exe")
		{
			Run Autorender.exe
		}
		Else If FileExist("Autorender.ahk")
		{
			Run Autorender.ahk
		}
		Else
		{
			MsgBox,Autorender not found.
		}
	}
	Return
}